package com.jack.payment.entity.generate.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jack.payment.util.serializer.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "用户支付金额的")
public class UserPaymentModel implements Serializable {
    @Schema(description = "用户id")
    private String userId;
    @Schema(description = "stripe金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal stripeAmount;
    @Schema(description = "支付宝金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal alipayAmount;
    @Schema(description = "微信金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal wechatAmount;
    @Schema(description = "银联金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal unionPayAmount;
}
